package com.jsmile.cloud.accountcenter.api.feign;

import javax.validation.Valid;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.jsmile.cloud.accountcenter.api.constants.AccountConstants;
import com.jsmile.cloud.accountcenter.api.req.ReqMemberRegister;
import com.jsmile.mall.api.JSmileResult;

@FeignClient(value = AccountConstants.APPLICATION_NAME, contextId = "account")
public interface AccountServiceApi {

    // TODO 账户、会员注册或者用户登录
    @RequestMapping(value = "/feign/account/register", method = RequestMethod.POST)
    JSmileResult register(@RequestBody @Valid ReqMemberRegister reqMemberRegister);
}
